package org.cloud.ext.util.res;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author xukk
 * @date 2020/3/10
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class ApiException extends RuntimeException{
    private Integer code;
    public ApiException(Integer code, String message){
        super(message);
        this.code=code;
    }
    public ApiException(String message){
        super(message);
    }
}